home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2007 March
/
PCWorld_2007-03_cd.bin
/
komunikace
/
acehtml
/
acehtmlfreeware.exe
/
scriptdef
/
Show Date 2.sd
< prev
next >
Wrap
INI File
|
2006-09-13
|
963b
|
53 lines
[SUBJECT]
Description=Display the current date (2nd variant)
ImageIndex=-1
Folder=Tools
[HEAD_TEXT]
;<script language="JavaScript">
;<!-- begin script
;var dd2, delay2, TheYear;
;function debuteDate2() {
; var adate, date, amonth;
; delay2 = `delay`;
;
; adate = new Date();
; date = adate.getDate();
; amonth = adate.getMonth()+1;
;
; if (adate.getYear() > 1999)
; TheYear = adate.getYear();
; else
; TheYear = (1900 + adate.getYear());
;
; if (amonth < 10)
; date += "/0" + amonth + "/" + TheYear;
; else date += "/" + amonth + "/" + TheYear;
; date = " " + date;
; document.Temps22.date.value = date;
;
; dd2 = setTimeout("debuteDate2(delay2)",delay2);
;}
;// end script -->
;</script>
;
[BODY_TAG]
;onLoad="debuteDate2()" onUnload="clearTimeout(dd2)"
[BODY_TEXT]
;<form name="Temps22">
;<input type="text" name="date" size="18"><br>
;</form>
;
[`delay`]
Kind=N
Value=10000